package com.gec.model.base;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;


import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;



@Data
public class BaseEntity implements Serializable {

   @TableId(type = IdType.AUTO)
   private Long id;
   //private String id;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic  //逻辑删除 默认效果 0 没有删除 1 已经删除
    @TableField("is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private Map<String,Object> param = new HashMap<>();
}
